package Utils;

import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;

public class SendMsgUtils {
	public static void sendMsg(Socket s,String content){
		PrintStream ps;
		try {
			ps = new PrintStream(s.getOutputStream());
			ps.println(content);
		} catch (IOException e) {
			System.out.println("发送"+content+"失败");
			e.printStackTrace();
		}
	}

}
